import  HttpStatusInterceptor from "./http-status-interceptor";
import  LoadingInterceptor from "./loading-interceptor";
import  AuthInterceptor from "./auth-interceptor";

export default  angular.module("app.http.custom.interceptors",[])
    .config([ '$httpProvider', function($httpProvider) {
        $httpProvider.interceptors.push('AuthInterceptor');
        $httpProvider.interceptors.push('HttpStatusInterceptor');
        $httpProvider.interceptors.push('LoadingInterceptor');
    } ])
    .factory("HttpStatusInterceptor",HttpStatusInterceptor)
    .factory("LoadingInterceptor",LoadingInterceptor)
    .factory("AuthInterceptor",AuthInterceptor)
    .name;